From 6d064404a2e9dcfd1fb79ec647b953ca9b4ce430 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 16 Aug 2010 15:31:05 +0100 Subject: [PATCH] libxl: xs_read accepts NULL for *len parameter Signed-off-by: Ian Campbell Signed-off-by: Stefano Stabellini committer: Stefano Stabellini --- tools/libxl/libxl_xshelp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/libxl/libxl_xshelp.c b/tools/libxl/libxl_xshelp.c index 90acd5d045..cfd7be3cb5 100644 --- a/tools/libxl/libxl_xshelp.c +++ b/tools/libxl/libxl_xshelp.c @@ -110,10 +110,9 @@ int libxl_xs_write(libxl_gc *gc, xs_transaction_t t, char * libxl_xs_read(libxl_gc *gc, xs_transaction_t t, char *path) { libxl_ctx *ctx = libxl_gc_owner(gc); - unsigned int len; char *ptr; - ptr = xs_read(ctx->xsh, t, path, &len); + ptr = xs_read(ctx->xsh, t, path, NULL); if (ptr != NULL) { libxl_ptr_add(gc, ptr); return ptr; -- 2.30.2